import Vue from "vue";
import Router from "vue-router";
import Comming from "@/components/Comming";
import Index from "@/components/index";
import RanKing from "@/components/ranking";
import content from "@/components/content";
import actress from "@/components/actress";
import news from "@/components/news";
import search from "@/components/search";
Vue.use(Router);

export default new Router({
  routes: [
    {
      path: "/Comming",
      component: Comming
    },
    {
      path: "/index",
      component: Index
    },
    {
      path: "/ranking",
      component: RanKing
    },
    {
      path: "/content:id",
      component: content
    },
    {
      path: "/actress:id",
      component: actress
    },
    {
      path: "/news:id",
      component: news
    },
    {
      path: "/search",
      component: search
    },
    {
      path: "*",
      redirect: "/index"
    }
  ]
});
